package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoRegion;
import com.yipao.db.domain.YipaoRegionExample;

/**
 * @author tianhao
 */
public interface RegionMapper {

    long countByExample(YipaoRegionExample example);


    int deleteByExample(YipaoRegionExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoRegion record);


    int insertSelective(YipaoRegion record);


    YipaoRegion selectOneByExample(YipaoRegionExample example);


    YipaoRegion selectOneByExampleSelective(@Param("example") YipaoRegionExample example, @Param("selective") YipaoRegion.Column ... selective);


    List<YipaoRegion> selectByExampleSelective(@Param("example") YipaoRegionExample example, @Param("selective") YipaoRegion.Column ... selective);


    List<YipaoRegion> selectByExample(YipaoRegionExample example);


    YipaoRegion selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoRegion.Column ... selective);


    YipaoRegion selectByPrimaryKey(Integer id);


    int updateByExampleSelective(@Param("record") YipaoRegion record, @Param("example") YipaoRegionExample example);


    int updateByExample(@Param("record") YipaoRegion record, @Param("example") YipaoRegionExample example);


    int updateByPrimaryKeySelective(YipaoRegion record);


    int updateByPrimaryKey(YipaoRegion record);
}
